package apiooday02;

import apiooday01.StringBuilderDemo;

public class MatchesDemo {
    public static void main(String[] args) {
        //   [\w]+@[\w](\.[a-zA-Z]+)+
        String email="tedu@qq.com";
        String regex="[\\w]+@[\\w]+(\\.[a-zA-Z]+)+";
        boolean match=email.matches(regex);
        System.out.println(match);

        String line ="as2d123asd123asd123asd";
        line=line.replaceAll("[0-9]+","#ee#");
        System.out.println(line);

    }
}
